<?php
/**
 * Created by PhpStorm.
 * User: yys
 * Date: 2016/11/18
 * Time: 15:08
 */

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class SourcePicBackRoute
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' =>[ 'web','auth','permissions.check'], 'namespace'=>'Backstage', 'prefix' =>'backstage/source-pic/'], function ($router) {
            $router->post('add-source-pic', ['uses' => 'SourcePicBackController@postAddASourcePic'])->name('post.source-pic.all.add-source-pic');
            $router->post('bluk-add-source-pic', [ 'uses' => 'SourcePicBackController@postUploadSourcePicSimpleInfo'])->name('post.source-pic.all.bluk-add-source-pic');
            $router->post('update-source-pic-details', [ 'uses' => 'SourcePicBackController@postUpdateSourcePicDetails'])->name('post.source-pic.all.update-source-pic-details');
            $router->post('check-tag-name', [ 'uses' => 'SourcePicBackController@postCheckTagName'])->name('post.source-pic.source-pic-tag-list.check-tag-name');
            $router->post('add-source-pic-tag', [ 'uses' => 'TagBackController@addTag'])->name('post.source-pic.source-pic-tag-list.add-source-pic-tag');
            $router->post('update-source-pic-tag', [ 'uses' => 'TagBackController@updateTag'])->name('post.source-pic.source-pic-tag-list.update-source-pic-tag');
            $router->post('del-source-pic-tag', [ 'uses' => 'TagBackController@delTag'])->name('post.source-pic.source-pic-tag-list.del-source-pic-tag');
            $router->post('audit-not-pass', [ 'uses' => 'SourcePicBackController@postAuditNotPass'])->name('post.source-pic.all.audit-not-pass');
            $router->post('audit-pass', [ 'uses' => 'SourcePicBackController@postAuditPass'])->name('post.source-pic.all.audit-pass');
            $router->post('del-source-pic', [ 'uses' => 'SourcePicBackController@delSourcePic'])->name('post.source-pic.all.del-source-pic');
            $router->post('source-pic-resource-tags', [ 'uses' => 'SourcePicBackController@getSourcePicResourceTags'])->name('post.source-pic.source-pic-tag-list.source-pic-resource-tags');
            $router->post('batch-update-source-pic', [ 'uses' => 'SourcePicBackController@bachUpdateSourcePic'])->name('post.source-pic.all.batch-update-source-pic');
            $router->get('update-source-pic-tag', [ 'uses' => 'SourcePicBackController@updateSourcePicTagPage'])->name('get.source-pic.source-pic-tag-list.update-source-pic-tag');
            $router->get('source-pic-tag-list', [ 'uses' => 'SourcePicBackController@sourcePicTagList'])->name('get.source-pic.source-pic-tag-list');

            $router->get('audit-not-pass', [ 'uses' => 'SourcePicBackController@auditNotPass'])->name('get.source-pic.all.audit-not-pass');
            $router->get('all', [ 'uses' => 'SourcePicBackController@getSourcePicList'])->name('get.source-pic.all');
            $router->get('add-source-pic', [ 'uses' => 'SourcePicBackController@getAddSourcePic'])->name('get.source-pic.all.add-source-pic');
            $router->get('bluk-add-source-pic', [ 'uses' => 'SourcePicBackController@getBulkAddSourcePic'])->name('get.source-pic.all.bluk-add-source-pic');
            $router->get('add-source-pic-tag', [ 'uses' => 'SourcePicBackController@getAddSourcePicTag'])->name('get.source-pic.source-pic-tag-list.add-source-pic-tag');

            $router->get('get-source-pic-by-tag', [ 'uses' => 'SourcePicBackController@getTagSourcePicMaps'])->name('get.source-pic.source-pic-tag-list.get-source-pic-by-tag');
            $router->post('delete-tag-resource-map', [ 'uses' => 'SourcePicBackController@delTagResourceMap'])->name('post.source-pic.source-pic-tag-list.delete-tag-resource-map');
            $router->post('add-tag-source-pic-map', [ 'uses' => 'SourcePicBackController@addTagSourcePicMap'])->name('post.source-pic.source-pic-tag-list.SourcePicBackController');
            $router->post('update-tag-source-pic-map-sort', [ 'uses' => 'SourcePicBackController@updateTagTempMapSort'])->name('post.source-pic.source-pic-tag-list.update-tag-source-pic-map-sort');
            $router->post('update-price', [ 'uses' => 'SourcePicBackController@updatePrice'])->name('post.source-pic.all.update-price');
            $router->post('update-source-pic-name', [ 'uses' => 'SourcePicBackController@updateSourcePicName'])->name('post.source-pic.all.update-source-pic-name');
            $router->post('change-show', [ 'uses' => 'SourcePicBackController@changeShow'])->name('post.source-pic.all.change-show');
        });

   }
}